// 定义选项接口
export interface Option {
  id: string;
  content: string;
}

// 定义问题类型
export type QuestionType = 'text' | 'choice';

// 定义问题接口
export interface Question {
  id: string;
  type: QuestionType;
  title: string;
  options: Option[];
}

// 定义问卷接口
export interface Questionnaire {
  id: string;
  title: string;
  questions: Question[];
  createdAt: string;
}

// 定义答案类型
export interface Answer {
  questionId: string;
  value: string | string[];
}

// 定义提交接口
export interface Submission {
  id: string;
  questionnaireId: string;
  answers: Answer[];
  submittedAt: string;
}